package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.BannerDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.model.Banner;
import com.iflytek.vo.BannerVO;
import com.iflytek.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 轮播图 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface BannerService extends IService<Banner>   {


    Result<BannerVO> findById(Integer id);

    Result<List<BannerVO>> findAll();

    Result<Boolean> saveBanner(BannerDTO dto);

    Result<Boolean> updateBanner(BannerDTO dto);

    Result<PageVO<BannerVO>> findPage(PageDTO<BannerDTO> dto);

    Result<BannerVO> deleteById(Integer id);
}